#include<stdio.h>
main()
{
    int t,x=1;
    scanf("%d",&t);
    while(x<=t==1)
    {
        x++;
        int n;
        scanf("%d",&n);
        int a,b,c,d,m;
        a=b=c=d=m=0;
        while(m<n==1)
        {
            scanf("%d",&a);
            (a%4==0)?b++:(a%2==0)?c++:d++;
            m++;
        }
        if(c==0)
        {
            if(d<=b+1)
                printf("Yes\n");
            else
                printf("NO\n");
        }
        else
             {
            if(d<=b)
                printf("Yes\n");
            else
                printf("NO\n");
        }
    }
    return 0;
}
